package com.feifan.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author Donald
 * @create 2019-03-19 23:45
 */
@Getter
@Setter
@ToString
@TableName(value = "user_base_info")
@JsonIgnoreProperties(ignoreUnknown=true)
public class  UserDTO implements Serializable {
    private static final long serialVersionUID = 3879432909375501383L;
    @TableId(type = IdType.AUTO)
    private Long id;
    private String username;
    private String nickname;
    private String password;
    private String salt;
    private Date createTime;
    private Date modifyTime;
    private Date lastLoginTime;
    private String telPhone;
    private Integer age;
    private String gender;
    private String email;
    private Integer status;
    private Integer level;
    private String extendAttri;
    /**表示该属性不为数据库表字段，但又是必须使用的*/
    @TableField(exist = false)
    private List<String> roleList;
    @TableField(exist = false)
    private List<String> premissionList;
}
